'''
Created on 2018年9月11日

@author: lijie
'''
from businessLayer.page_element.element_base import ElementBase
class DirAddPopPage():
    
    class LblTitle(ElementBase):
        '''title of the pop page,新增弹出窗体标题
        '''
        def __init__(self):
            ElementBase("//div[@class='el-dialog__header']/span[.='新增']")
            
    class LblParentDir(ElementBase):
        def __init__(self):
            ElementBase("//div[@class='el-dialog__body']//label[.='上级目录:']/following-sibling::div/span")
            
    class TxtDirName(ElementBase):
        def __init__(self):
            ElementBase("//div[@class='el-dialog__body']//label[.='目录名称:']/following-sibling::div//input")
            
    class TxtDirNumber(ElementBase):
        def __init__(self):
            ElementBase("//div[@class='el-dialog__body']//label[.='目录编号:']/following-sibling::div//input") 
            
    class TxtDirShortName(ElementBase):
        def __init__(self): 
            ElementBase("//div[@class='el-dialog__body']//label[.='目录简称:']/following-sibling::div//input")      
            
    class TxtDirDescription(ElementBase):
        def __init__(self): 
            ElementBase("//div[@class='el-dialog__body']//label[.='目录描述:']/following-sibling::div//textarea")
            
    class ChkAutoCreateSubDir(ElementBase):
        def __init__(self): 
            ElementBase("//label[contains(.,'自动创建下级目录')]//span")
      
    class BtnSave(ElementBase):
        def __init__(self): 
            ElementBase("//button[contains(.,'保存')]")
            
    class BtnCancel(ElementBase):
        def __init__(self): 
            ElementBase("//button[contains(.,'取消')]")